/******************************************************************************

	COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2008, 2009, 2010.

	This file is part of Maxsi Installer.

	Maxsi Installer is free software: you can redistribute it and/or modify it
	under the terms of the GNU Lesser General Public License as published by
	the Free Software Foundation, either version 3 of the License, or (at your
	option) any later version.

	Maxsi Installer is distributed in the hope that it will be useful, but
	WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
	or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
	License for more details.

	You should have received a copy of the GNU Lesser General Public License
	along with Maxsi Installer. If not, see <http://www.gnu.org/licenses/>.

	MaxsiInstaller.exe
	The UI front-end for the Maxsi Distribution library.

	Main.h
	Handles the creation of the UI and the program mainloop.

******************************************************************************/

#ifndef MAIN_H
#define MAIN_H

bool CreateWindow();
bool ResizeWindow();
int main( int argc, char** argv);

class MaxsiInstaller : public MaxsiWindow
{
	MAXSI_DECLARE_CHILD_CLASS(MaxsiInstaller, MaxsiWindow);

public:
	MaxsiInstaller();
	~MaxsiInstaller();

public:
	virtual bool CreateControls();
	virtual bool DeleteControls();
	virtual bool UpdateControls();
	virtual MESTR* GetWindowTitle();
	virtual int GetDefaultWidth();
	virtual int GetDefaultHeight();
	virtual	bool UpdateWindowIcon();

public:
	bool	Init_RequestParameters();

public:
	bool	Init_NeedInput;

public:
	MaxsiHandle Header;
	MaxsiHandle	SeparatorTop;
	MaxsiHandle	SeparatorBottom;
	MaxsiHandle	ProgressBar;
	MaxsiHandle	StatusLabel;
	MaxsiHandle	SubStatusLabel;
	MaxsiHandle	cmdRetry;
	MaxsiHandle	ProductNameField;
	MaxsiHandle	MasterServerField;
	MaxsiHandle	ProductNameLabel;
	MaxsiHandle	MasterServerLabel;

public:
	MESTR*	WindowTitle;

};

#endif
